package com.kimwu.kill.mall.item.web.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商品表
 * </p>
 *
 * @author KimWu
 * @since 2021-08-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("item")
public class Item implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 商品名称

     */
    @TableField("title")
    private String title;

    /**
     * 商品价格
     */
    @TableField("price")
    private Double price;

    /**
     * 商品描述
     */
    @TableField("description")
    private String description;

    /**
     * 销量
     */
    @TableField("sales")
    private Integer sales;

    @TableField("img_url")
    private String imgUrl;


}
